<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="author" content="Guillaume Laborde - Guillaume Lameyre" />
<link rel="stylesheet" media="screen" type="text/css" title="style" href="css/style.css" />
<title>ContactBook</title>
</head>

<body>

	<c:set var="login" value="${sessionScope.account.login}"></c:set>	
	<c:if test="${not empty login && login != 'null'}">
		<c:redirect url="Index" />
	</c:if>

	<div id="mainframe">
		<c:import url="include/publicBanner.html" />
		<h1>Authentification</h1>
		<div id="content">
			<form action="Login" method="POST" class="form">
				<table>
					<tr>
						<td>Utilisateur</td>
						<td><input type="text" name="login" id="login" /></td>
					</tr>
					<tr>
						<td>Mot de passe</td>
						<td><input type="password" name="password" id="password" /></td>
					</tr>
					<tr>
						<td colspan="2" class="button"><input type="submit" name="submit" value="OK" /> <input type="submit" name="submit" value="Annuler" /></td>
					</tr>
				</table>
			</form>
		</div>
		<c:import url="include/bottom.html" />
	</div>

</body>
</html>